home *** CD-ROM | disk | FTP | other *** search
- Short: A quick find util like locate on Linux
- Author: TimHanson(msinister@connectfree.co.uk)
- Uploader: TimHanson(msinister@connectfree.co.uk)
- Type: disk/misc
-
- Version 1.1
- In this archive are 3 utils: updatedb, locate and locategui. Their purpose
- is to allow quick searches for lost files with pattern matching.
-
- To install, copy all the files somewhere like C: or don`t.
-
- Usage:
-
- updatedb database [quiet]
- locate filenamepattern
- locategui filenamepattern [viewer]
-
- Explaination:
-
- To begin with you should run updatedb. This will create a database file.
- This file may be pretty large depending on the size of your harddrive. On
- my system it`s about 3Meg and updatedb takes about 10Mins to create it. By
- default the file is stored as s:locatedb. You can name it whatever you want
- however with the option on the command line.
- eg: updatedb SYS:prefs/sillynameforafile
- updatedb creates an env variable called LOCATEDBNAME to point to this file.
- The only other option is QUIET which stops output to stdout.
-
- Now you can use locate. This takes one argument; an AmigaDos pattern to
- identify the file you are looking for. This should be a simple file name
- with no path but may include AmigaDOS wildcards. Locate then scans the
- database pointed to by LOCATEDBNAME for matches and prints the full path of
- any matches to stdout. (ie. The shell it was run from or an indirection
- file if one is supplied.) Locate responds to CTRL-C.
-
- Locategui functions in exactly the same way as locate but opens a window on
- the default public screen with a listview to display the results. Items in
- the listview can be clicked to show them with an external viewer. It takes
- an additional cli argument to determine what viewer should be used to show
- the file. The default is multiview. To stop any further searching click the
- window`s close icon.
-
- This of course is not a new idea and there are several progs available for
- the amiga that do the same thing. The only advantages this one has is that
- it`s easy to install and use it can be run from anywhere and will work
- under fairly low memory.
-
- Bug reports to the address above.
- This archive is jokeware. If you use the product regularly you are morally
- obliged to send me an email containing at least one joke.
- Distribution via CD is ok as long as you send me a copy.
-
- History:
- 1.0
- A bug came to my attention directly after sending the first archive. The
- file patterns were case sensitive. Plainly useless on the Amiga. This is
- now fixed.
- Added the ability to view files selected in listview.
- 1.1
- Changed to ExAll() to get file list in updatedb. Should fix the problem with
- hard/soft links.
- Changed TagItem data to GT_SetGadgetAttrs() from 0L to ~0L. This stops the
- listview from flickering when a new item is added.
-
-
- ============================= Archive contents =============================
-
- Original Packed Ratio Date Time Name
- -------- ------- ----- --------- -------- -------------
- 11596 6326 45.4% 19-Oct-00 23:45:16 +locate
- 2756 1411 48.8% 19-Oct-00 23:54:08 +locate.readme
- 15320 8052 47.4% 19-Oct-00 23:45:22 +locategui
- 8908 5099 42.7% 19-Oct-00 23:45:32 +updatedb
- -------- ------- ----- --------- --------
- 38580 20888 45.8% 21-Oct-100 20:11:34 4 files
-